import React, { useEffect } from 'react'
import { Result } from 'antd';
import { useLocation } from 'react-router-dom'

import styles from './index.module.css'

function ReportResults() {
    //解构赋值
    const { state: { params: { caseNumber } } } = useLocation()


    //[]空数组相当于componentDidMount
    useEffect(() => {
        initData()
        return () => {
        }
    }, []);

    function initData() {

    }

    return (
        <Result
            status="success"
            title="上报成功"
            subTitle={'案件号：' + caseNumber}
        />
    )
}

export default ReportResults;
